import 'package:flutter/material.dart';
import 'package:wanxiang_app/utils/constant.dart';
import 'package:wanxiang_app/widgets/tabs.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'account_textField2.dart';
typedef void ClickCallBack(String content);
class MySellDialog extends Dialog {
  ClickCallBack callBack;

  MySellDialog({required this.callBack} );

  @override
  Widget build(BuildContext context) {
    return Material(
        //透明层
        type: MaterialType.transparency,
        child: Container(
          alignment: Alignment.center,
          child:    Container(
            alignment: Alignment.center,
              height: 227.h,
              width: 270.w,
              decoration: BoxDecoration(
                  borderRadius: BorderRadius.circular(10.r),
                  color: Colors.white
              ),
              child: Column(
                mainAxisAlignment: MainAxisAlignment.center,
                crossAxisAlignment: CrossAxisAlignment.center,
                children: [
                  Image.asset(Constant.IMG_BASE+'success.png',width: 56.w,height: 56.w,),
                  SizedBox(height: 14.h,),
                  Text('提交成功',style: TextStyle(
                    color: Color(0xFF333333)
                  ),),
                  SizedBox(height: 7.h,),

                  Text('已进入审核阶段，审核通过后账号会自动上架',style: TextStyle(
                      color: Color(0xFF333333)
                  ),),
                  SizedBox(height: 19.h,),
                  InkWell(
                    onTap: (){
                      callBack('go');
                    },
                    child: Container(
                      padding: EdgeInsets.fromLTRB(12.w, 5.h, 12.w, 5.h),
                      decoration: BoxDecoration(
                          color: Color(0xFF007BE5),
                          borderRadius: BorderRadius.circular(4.r)
                      ),
                      child: Text('我知道了',style: TextStyle(
                          color: Colors.white,
                          fontSize: 13.sp
                      ),),
                    )
                  )

                ],
              )
          )
        )

    );
  }
}